package learning.day06.demo01;

public class Demo02 {
    public static void main(String[] args) {
        Phone phone=new Phone();
        phone.brand="土豪金";
        phone.price=123.12;
        phone.color="土豪金";

        method(phone);

        System.out.println(phone.brand);
        System.out.println(phone.price);
        System.out.println(phone.color);
    }

    public static  void method(Phone phone){
        System.out.println(phone.brand);
        System.out.println(phone.price);
        System.out.println(phone.color);
        phone.brand="土豪金123";
        phone.price=13245.12;
        phone.color="土豪金34";
    }
}

